/* Copyright © 2020 liudong.li. All rights reserved. */
package com.liliudong.keelflower.common.core.constants;

/**
 * Http状态码
 *
 * @author Liudong.li
 */
public enum HttpStatus {
    /**
     * 成功
     */
    SUCCESS(0, "success"),
    /**
     * 异常
     */
    EXCEPTION(-1, "exception"),
    /**
     * 系统繁忙
     */
    SYSTEM_BUSY(-500, "system_busy"),
    /**
     * 凭证过期
     */
    EXPIRED_CREDENTIALS(-4010, "expired_credentials"),
    /**
     * 未知账户
     */
    UNKNOWN_ACCOUNT(-4011, "unknown_account"),
    /**
     * 账户锁定
     */
    DISABLED_ACCOUNT(-4012, "disabled_account"),
    /**
     * 密码错误
     */
    SECRET_EXCEPTION(-4013, "secret_exception");

    HttpStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public final int code;
    public final String msg;
}
